﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses.Forest._1_5;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._1_5;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._1_5.Resources;
using The_Chronicles_of_Asku.Characters;

namespace The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._1_5
{
    class AreaTwo
    {
        Hero myHero = new Hero();
        HoodedHorror HoodedHorror = new HoodedHorror();
        HoodedHorrorBattle battle = new HoodedHorrorBattle();

        public void theFloor(Hero myHero, Mob mob)
        {
            Console.WriteLine(AreaTwoText.Entrance);
            ClearScreen();

            battle.Fight(myHero, HoodedHorror);
            myHero.ResetStats(myHero);
            HoodedHorror.ResetStats(HoodedHorror);
            ClearScreen();

            if (myHero.isAlive == true)
            {
                Console.WriteLine(AreaTwoText.Exit);
                ClearScreen();
            }

            else if (myHero.isAlive == false)
            {
                Console.WriteLine(AreaTwoText.Dead);
                myHero.isAlive = true;
                ClearScreen();
            }
        }

        private void ClearScreen()
        {
            Console.ReadKey();
            Console.Clear();
        }
    }
}
